<template>
  <div v-if="bol" id="app">
    <router-view />
  </div>
</template>

<script>
export default {
  name: 'App',
  provide() {
    return {
      appNum: 1,
      reload: this.reload
    }
  },
  data() {
    return {
      bol: true
    }
  },
  created() {
    console.log('$router', this.$router)
  },
  methods: {
    reload() {
      this.bol = false
      this.$nextTick(() => {
        this.bol = true
      })
    }
  }
}
</script>
